import time

from selenium import webdriver

driver_object = webdriver.Chrome()
driver_object.get("https://www.douban.com/")
driver_object.find_element_by_id("form_email").send_keys("XXXXXXX@qq.com")
driver_object.find_element_by_id("form_password").send_keys("xxxxxxxx")
driver_object.find_element_by_class_name("bn-submit").click()
# with open(r"1.html", "w") as f:
#
#     data =  driver_object.page_source
#     f.write(data)
time.sleep(5)
driver_object.quit()